package com.cy.ppj.model.ao.banner;


import javax.validation.constraints.NotNull;

import com.cy.ppj.model.enums.banner.BannerType;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * banner新增字段
 *
 * @author: tanyilin
 * @create: 2018年9月20日 下午6:13:52
 */
@Data
@ApiModel("banner新增字段")
public class BannerAddAO {

	@ApiModelProperty(value = "banner类型")
	@NotNull(message = "类型不可为空")
	private BannerType type;
	
	@ApiModelProperty(value = "标题")
	private String title;
	
	@ApiModelProperty(value = "排序", example = "0")
	private Integer sort;
	
	@ApiModelProperty(value = "跳转地址")
	private String jumpUrl;
	
	@ApiModelProperty(value = "图片路径")
	private String path;
}
